/**
 * 
 */
package com.androspell.comicviewer.browser;

import java.util.ArrayList;

import android.content.Context;

/**
 * 
 * Scans All the comic books present on sdcard.<br>
 * Picks all the files that end with .zip, .cbr, .cbz
 * 
 * @author swaroop @AndroSpell
 *
 * Date : 09-Oct-2011
 */
public class ComicBookScanner {
	
	Context context;
	
	private ArrayList<ComicBean> comicBooks;
	public ComicBookScanner(Context context) {
		this.context = context;
	}
	
	/**
	 * This will start scanning the comic books and generates 
	 * list of comicbooks. 
	 * @return
	 */
	public ArrayList<ComicBean> startScanning(){
		ArrayList<ComicBean> listofComicBooks = null;
	
		//TODO Scan through sdcard and pick up all comic books
		
		comicBooks = listofComicBooks;
		return listofComicBooks;
	}
	
	/**
	 * Returns the List of Comicbooks generated by the 
	 * method <code>startScanning()</code>
	 * 
	 * @return
	 */
	public ArrayList<ComicBean> getComicBooks() {
		return comicBooks;
	}

}
